bitkeeper revision 1.1159.115.1 (417457c52HnHChOJGxHncu97gsa5cg)
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Mon, 18 Oct 2004 23:54:45 +0000 (23:54 +0000)
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Mon, 18 Oct 2004 23:54:45 +0000 (23:54 +0000)
Atropos scheduler set takes 5 arguments.  As noted by Diwaker Gupta.

tools/python/xen/xm/main.py

index d8c70e75fec6e7bd59e4c9374e60c2fec1608f60..797be02ae3f73c5aa72f1b2cd444180a97091c0e 100644 (file)
@@ -579,9 +579,9 @@ class ProgAtropos(Prog):
         print "\nSet atropos parameters."
 
     def main(self, args):
-        if len(args) != 5: self.err("%s: Invalid argument(s)" % args[0])
+        if len(args) != 6: self.err("%s: Invalid argument(s)" % args[0])
         dom = args[1]
-        v = map(int, args[2:5])
+        v = map(int, args[2:6])
         server.xend_domain_cpu_atropos_set(dom, *v)
 
 xm.prog(ProgAtropos)